import React from "react";
import { Result, Button } from 'antd';
import {Link} from "react-router-dom";

export default class Success extends React.Component{
    render() {
        return (
            <div style={{
                background: "white",
                width: '100%',
                height: '100%',
            }}>
            <Result
                status="success"
                title="Successfully Register Our Server!"
                extra={[
                    <Link to='/user/login'>
                        <Button type="primary" key="goLogin" style={{
                            background: 'hsl(171, 80%, 41%)',
                            border: 'hsl(171, 80%, 41%)'
                        }}>
                            Go Login
                        </Button>
                    </Link>,
                ]}
                style={{
                    padding: '15%'
                }}
            />
            </div>
        )
    }
}